package com.liqi.dev.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 主题表
 * </p>
 *
 * @author tianye
 * @since 2022-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_cfg_subject")
@ApiModel(value="CfgSubject对象", description="主题表")
public class CfgSubject implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "主题编码")
    private String subjectCode;

    @ApiModelProperty(value = "主题名称")
    private String subjectName;
//系统类型：1门户，2填表系统，3表单电子范例系统
    @ApiModelProperty(value = "系统类型")
    private Integer systemType;

    @ApiModelProperty(value = "主题祖籍列表")
    private String ancestors;
    
    @ApiModelProperty(value = "父主题编码")
    private String parentSubjectCode;

    @ApiModelProperty(value = "网点编码")
    private String branchCode;

    @ApiModelProperty(value = "界面点击时，导航url，可以是http,ws,或者vue的路径名")
    private String linkTo;

    @ApiModelProperty(value = "主题详细信息")
    private String subjectDetail;

    @ApiModelProperty(value = "事项主题类别，服务对象： 1=自然人，2=法人")
    private String serviceObject;

    @ApiModelProperty(value = "主题logo")
    private String subjectLogo;
    
    @ApiModelProperty(value = "当前激活主题logo")
    private String subjectActiveLogo;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "状态：0正常，1软删除")
    private Boolean status;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(exist = false)
    @ApiModelProperty(value = "子主题")
    private List<CfgSubject> childList;

    @TableField(exist = false)
    @ApiModelProperty(value = "主题下面的事项")
    private List<RelServiceSubject> serviceList;

}
